package com.huawei.crm.service.impl;

import com.huawei.crm.domain.Customer;
import com.huawei.crm.mapper.CustomerReportMapper;
import com.huawei.crm.query.QueryObject;
import com.huawei.crm.service.ICustomerReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CustomerReportServiceImpl extends AbstractService<CustomerReportMapper, Customer, Long> implements ICustomerReportService {

    @Autowired
    private CustomerReportMapper mapper;

    @Override
    public List<Map<String, Object>> listCustomerReports(QueryObject qo) {
        return mapper.selectCustomerReport(qo);
    }
}
